package com.howe.provider.service;

import com.howe.pkg.service.external.ITestRestService;
import com.howe.pkg.service.external.ITestService;
import org.apache.dubbo.config.annotation.DubboService;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

@DubboService(protocol ="rest")
@Path("/test")
public class TestRestService implements ITestRestService {

    @Override
    @Path("/sayHello")
    @GET
    public String sayHello() {
        return "hello";
    }
}
